package com.yxuan.springboot.constant.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @methodName AlipayConfig
 * @effect: 支付宝支付配置类
 */
@Data
@Component
@ConfigurationProperties(prefix = "alipay")
public class AlipayConfig {

    /**
     * 应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号
     */
    public static String APP_ID = "2021000122673141";

    /**
     * 商户私钥，您的PKCS8格式RSA2私钥，这些就是我们刚才设置的
     */
    public static String MERCHANT_PRIVATE_KEY = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCOt5tAZZLMfVz2b86nST5bGPz9CuxCshIKzkkYV6kucAyU1JKlMLp/o3A2e5NInfc20cO+scFQEMkx0unAMKhicjMqBbdUjMYj3WY2cD+bTw4sU1E+GSCov8jWS1cOXL1vW7yhp2pK5mP6m4w1CV8uHR25jOr+zGG9kOgcFcD3tAzXHV34rZPVvjgF1Q0JOSOnU9LV81+ytgrjLl5vxhFv4EV5eRN8BPUCfWBWm26K0c1px8i0ZhjddI5rX2K3vjro5TZEw0qu6rKw+XeCc27FLedyhYwJFI+79setkqUAHvdVKRgbXCf1E49QH84+lhPBI1RN8cgex6uKUZCqCSCVAgMBAAECggEAFcHJ6kRR39jQvkUHRRt2ZR7nGpB6uiQ5eeo+3HYotYqhcGMDxCkslV7OMZAfQPfMA1BxPfYNWW5lrbHQrtr8IJ32TNa4PyyC3F7ZQT1VhRDFQV6mSQg9oVwzeu/bYrYirwJWPHKwUqDS5xalhkRafUY1DN99x8BSujqIGBf85gYTaebrwSXxvfdmRoITbX0my1L9J0a29d/7di9d5XfyZu2SfGyQ5WxG1es3V4pHHtpvzbu/KP/HW8mBMiTwu0xbTrCaek3XJdKmj67/fT98JBSRAyM/Pj7dreJZZITLLrRgJbyQRiCAUCsedDFKmq/CaNiuX2lR22l++oB7Y2Mz1QKBgQDN8xnEozo7qXQsMSuiLODf33NGJk2XIxKsWNaQMJgJaQA9jJsigocQJEYpFv/0BOIjEbuAbrWRZOIqesJp+ivtMZosCygfw5/DglVNs7A+su5X7rJ2oN0AP/d7txO9YaiBaSVmqgMhB1IAGB5RxmEBjRhPm3zLxHS+PTWFtG6X5wKBgQCxZpSiYIB3W8pv6rBJOpJRwj7hpTjuPMzeunEegKAIG1/NdBqo5a5Dg71E3E1WQ2D6uBhAQjtlolC4CzTXu12bZ2cXyDC3xxetp8xjGDLk9KKxoHboX/AgFOo6PC+IPLjakQI7e2xjBsdcJN81L9AWkb6HJEhRYIQCv22G5sdEIwKBgQCj+0qrLSRy2MvtXAFYEc/DsZGBa4IgMwbtP5coG+kSpQ5R86Caa7/K9HcAxJVr4G+GaNoYuw3LBL6oADLIWy+anwIYy5FZKVQOQbpWMhrE8YehcCedGRye1E/jq7QF+LpIwEXNZtUy+TcraAjMJ96Zc5TF3hIR1Qz3ZJk3KqFcRQKBgGP8l0W18nJTsBPISTfc5V9jhiGUCDRu3GGk3+D7SjeHhkW8bNJJMiEnfWP0bzpxm5V0cWa2bdfo1moFFvGIz0epzjdfQ+YxNq1P6CjqGLVnFNPcx2hNun+6ihHsnjXBU8cM+B8if4KI7ZCHz66glj5CQwrUblY/eeg6kLb6F9HVAoGASfZSjklJEvPcqmEWvpVAk+E5I6epKgHRDEosTSZQbhX+jEN3JiefcaRfJ3JvLODlsW7dDDx5rIqC8dCQyG9e0byGkbwLAE/YRwPvlmQUHYzGL3R/DHf8L+C3g9uQ71tpkw3e6Qu3xLi7ThBvTbiA/IA8yd2T8KXkqH+o3syoqF0=";

    /**
     * 支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。，这些就是我们刚才设置的
     */
    public static String ALIPAY_PUBLIC_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvsDUi9Xj7ZARHBt1uKfMVU6A1wM+Yu+56GDLLc56BAZI18yGLCbCq8AONvoGweli6tAq0j3fVPu5i8MKC5gDoeFwWJLtBXRwEFHfGoHypdoKpRSY9r4i5Qr1iw8gdfBA6v8vUHNQcYP50n/5fXtyhgpZfbDza9k8rlbTYpVN7wdMiCwe9byAo9E9KKkTiXUMT4K/SSxN0kbUshS4NmLyr4plJOW9d0eOdpiaAuTui/6N3maf8GtOqt+PGCf8o785BmDt1dnJqWL1Cw2U222aKE2MPOz4zsezAbfz6H5ObuVy6A2e3M0algPJcCidB/wbuiDDCgLkdDg46z5Ymfpr2QIDAQAB";

    /**
     * 异步通知，再这里我们设计自己的后台代码
     */
    public static String notify_url = "异步回调url/alipay/notify";

    /**
     * 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
     */
    public static String return_url = "同步回调url/alipay/return";

    /**
     * 签名方式  固定
     */
    public static String SIGN_TYPE = "RSA2";

    /**
     * 字符编码格式  固定
     */
    public static String CHARSET = "utf-8";

    /**
     * 支付宝网关  正式环境
     */
    public static String GATEWAYURL = "https://openapi-sandbox.dl.alipaydev.com/gateway.do";

}

